package org.ruoyi.gathe.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.RequiredArgsConstructor;
import org.ruoyi.common.core.domain.R;
import org.ruoyi.common.core.validate.AddGroup;
import org.ruoyi.common.core.validate.EditGroup;
import org.ruoyi.common.excel.utils.ExcelUtil;
import org.ruoyi.common.idempotent.annotation.RepeatSubmit;
import org.ruoyi.common.log.annotation.Log;
import org.ruoyi.common.log.enums.BusinessType;
import org.ruoyi.common.mybatis.core.page.PageQuery;
import org.ruoyi.common.mybatis.core.page.TableDataInfo;
import org.ruoyi.common.web.core.BaseController;
import org.ruoyi.gathe.domain.bo.GatheTableBo;
import org.ruoyi.gathe.domain.vo.GatheTableVo;
import org.ruoyi.gathe.service.IGatheService;
import org.ruoyi.gathe.service.IGatheTableService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 采集数据
 *
 * @author bz_huaYal9146
 * @date 2025-11-06
 */
@Validated
@RequiredArgsConstructor
@RestController
@RequestMapping("/gathe/data")
public class GatheController extends BaseController {

    private final IGatheService gatheService;

    /**
     * 采集数据
     */
    @SaCheckPermission("gathe:data:collect")
    @GetMapping("/collect")
    public R collect() {
        return gatheService.collect();
    }


}
